package com.ymatou.iapi.productsnapshot.service;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*创建快照Call
*FreeMaker Template自动生成代码
*/
public class AddProductSnapshotCall extends YmatouBaseCall{
	private static String opurl ="api/Product/AddProductSnapshot";
	
	public AddProductSnapshotCall() {
		//old snapshot 
		//new productsnapshot
		super(EnvSetup.getSystemUrl("productsnapshot"),opurl,"POST","JSON");
	}
	public AddProductSnapshotCall(String systemurl) {
		//old snapshot 
		//new productsnapshot
		super(EnvSetup.getSystemUrl(systemurl),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
//		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
}